package com.cn.lyl.lawyer.dao;

import com.cn.lyl.lawyer.model.entity.NewsModel;
import com.cn.lyl.lawyer.model.vo.NewsTypeVo;

import java.util.List;

public interface NewsMapper {

    int add(NewsModel newsModel);
    int update(NewsModel newsModel);
    int delete(Integer id);
    NewsTypeVo findById(Integer id);
    NewsModel findNewest();
    List<NewsTypeVo> findAll(NewsTypeVo newsTypeVo);
    int countFindAll(NewsTypeVo newsTypeVo);
    int updateIsHome(Integer id);
}
